package com.link.base.base.publicdataimport.service;

import com.link.base.base.publicdataimport.model.Publicdataimportorg;
import com.link.base.base.publicdataimport.dao.mybatis.mapper.PublicdataimportorgMapper;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * @author 黄安邦
 * @date 2018-06-22
 */
@Service
public class PublicdataimportorgServiceImpl extends BasicServiceImpl<Publicdataimportorg> implements PublicdataimportorgService {

    @Resource
    private PublicdataimportorgMapper publicdataimportorgMapper;

    @Override
    public BasicMapper<Publicdataimportorg> getBasicMapper() {
        return publicdataimportorgMapper;
    }

    /**
     * 根据父Id删除记录
     *
     * @param entity
     */
    @Override
    public void deleteByHeadId(Publicdataimportorg entity) {
        publicdataimportorgMapper.deleteByHeadId(entity);
    }
}
